home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** $Header: /vol/atlanta/elib/RCS/RasterFormats.pdf,v 1.9 96/08/12 13:34:32 hellmann Exp $
- **
- ** FILENAME: RasterFormats.pdf
- **
- ** PURPOSE: Define the structure for the configuration information used by
- ** raster format DLLs.
- **
- ** AUTHOR: Doug Hellmann
- **
- ** DATE: Thu Jul 18 15:20:55 EDT 1996
- **
- ** COMMENTS: The title associated with the extensions is used as the device
- ** name for the database record, since this is the only value
- ** guaranteed to be unique.
- **
- ** RCSLOG: $Log: RasterFormats.pdf,v $
- ** Revision 1.9 96/08/12 13:34:32 hellmann
- ** Added some comments describing the constraints on the fields for
- ** RasterFormats.
- **
- ** Revision 1.8 96/07/26 14:42:40 hellmann
- ** Switched userfile from boolean to enum type.
- **
- ** Revision 1.7 96/07/26 11:54:56 hellmann
- ** userfile takes values "user" or "internal".
- **
- ** Revision 1.5 96/07/26 11:17:55 hellmann
- ** Changed ispseudo to a boolean flag.
- **
- ** Revision 1.4 96/07/26 11:11:41 hellmann
- ** Added userfile parameter.
- **
- ** Revision 1.3 96/07/25 18:22:45 hellmann
- ** Added isdir and reordered file some.
- **
- ** Revision 1.2 96/07/22 14:26:33 hellmann
- ** Added readonly option.
- **
- ** Revision 1.1 96/07/22 14:25:02 hellmann
- ** Initial revision
- **
- **
- */
-
- /*
- ** The three fields shortname, template and extension all specify different
- ** forms of the file extension. Any instance of one of these fields should
- ** be UNIQUE. In most cases, for any given RasterFormats instance, these
- ** fields will be of the form:
- **
- ** template: *.<ext>
- ** extension: .<ext>
- ** shortname: <ext>
- **
- ** (where <ext> is a unique value for the record).
- **
- ** In the event where the template represents a pseudo extension (ie, ispseudo
- ** is true) the shortname must still contain a valid file extension.
- **
- ** EXAMPLES:
- **
- ** Imagine Image:
- ** template: *.img
- ** ispseudo: false
- ** extension: .img
- ** shortname img
- **
- ** GRID:
- ** template: *.grid
- ** ispseudo: true
- ** extension: (empty)
- ** shortname: grid
- **
- ** Generic Binary:
- ** template: *
- ** ispseudo: true
- ** extension: (empty)
- ** shortname: genericbinary
- */
-
- /*
- ** This class should not be changed by the user in the configuration
- ** editor.
- */
- readonly;
-
- /*
- ** Specify a unique name for matching with icons in a registry. This
- ** field must never contain characters which can not be used as part of
- ** a file name. This field should also be lower case.
- */
- shortname("File Type"): "" "Unique registry name.";
-
- /*
- ** Define the filter pattern to be used by a file filter.
- */
- template("File Name Template"): "" "File filter pattern.";
-
- /*
- **
- */
- ispseudo("Pseudo-Template"): "false" "Can the template be used to identify files by name?"
- boolean "true" "false";
-
- /*
- ** Define the extension for files of this type, to be used for autocompletion
- ** in a file filter operation.
- */
- extension("File Extension"): "" "What extension is used for this title?";
-
- /*
- ** Does the file format represent a directory or a file?
- */
- isdir("File/Directory status"): "file" "Is the format a directory type or file type?"
- enums {
- "file" "Format stored as a file"
- "dir" "Format stored as a directory"
- };
-
- /*
- ** Define the instance (full path) for which supports a particular title.
- */
- instance("DLL Instance"): "" "Which DLL instance should be used?";
-
- /*
- ** Does the title identify an interface to a user file, or a partial file
- ** such as AUX files?
- */
- userfile("User accessible file?"):"user"
- "Does the title identify an interface to a user file, or an internal file?"
- enums {
- "user" "File contains user data."
- "internal" "File is in internal format."
- };
-